

function TabMove(id,index,count,link)
{
var defaultCss="kjy";
var SelectCss="kjy_a";
for(var n=1;n<=count;n++)
{
document.getElementById("Button"+id+n).className=defaultCss;
document.getElementById("ContentBox"+id+n).style.display='none';
}
document.getElementById("Button"+id+index).className=SelectCss;
document.getElementById("ContentBox"+id+index).style.display='';
if(link!=null && link!="")document.getElementById("TabLink"+id).href=link;

}


function fTabMove(id,index,count,link)
{
var defaultCss="fkjy";
var SelectCss="fkjy_a";
for(var n=1;n<=count;n++)
{
document.getElementById("fButton"+id+n).className=defaultCss;
document.getElementById("fContentBox"+id+n).style.display='none';
}
document.getElementById("fButton"+id+index).className=SelectCss;
document.getElementById("fContentBox"+id+index).style.display='';
if(link!=null && link!="")document.getElementById("TabLink"+id).href=link;

}

function xTabMove(id,index,count,link)
{
var defaultCss="xkjy";
var SelectCss="xkjy_a";
for(var n=1;n<=count;n++)
{
document.getElementById("xButton"+id+n).className=defaultCss;
document.getElementById("xContentBox"+id+n).style.display='none';
}
document.getElementById("xButton"+id+index).className=SelectCss;
document.getElementById("xContentBox"+id+index).style.display='';
if(link!=null && link!="")document.getElementById("TabLink"+id).href=link;

}

function pTabMove(id,index,count,link)
{
var defaultCss="pkjy";
var SelectCss="pkjy_a";
for(var n=1;n<=count;n++)
{
document.getElementById("pButton"+id+n).className=defaultCss;
document.getElementById("pContentBox"+id+n).style.display='none';
}
document.getElementById("pButton"+id+index).className=SelectCss;
document.getElementById("pContentBox"+id+index).style.display='';
if(link!=null && link!="")document.getElementById("TabLink"+id).href=link;

}


function gTabMove(id,index,count,link)
{
var defaultCss="gkjy";
var SelectCss="gkjy_a";
for(var n=1;n<=count;n++)
{
document.getElementById("gButton"+id+n).className=defaultCss;
document.getElementById("gContentBox"+id+n).style.display='none';
}
document.getElementById("gButton"+id+index).className=SelectCss;
document.getElementById("gContentBox"+id+index).style.display='';
if(link!=null && link!="")document.getElementById("TabLink"+id).href=link;

}


function sTabMove(id,index,count,link)
{
var defaultCss="skjy";
var SelectCss="skjy_a";
for(var n=1;n<=count;n++)
{
document.getElementById("sButton"+id+n).className=defaultCss;
document.getElementById("sContentBox"+id+n).style.display='none';
}
document.getElementById("sButton"+id+index).className=SelectCss;
document.getElementById("sContentBox"+id+index).style.display='';
if(link!=null && link!="")document.getElementById("TabLink"+id).href=link;

}

function wTabMove(id,index,count,link)
{
var defaultCss="wkjy";
var SelectCss="wkjy_a";
for(var n=1;n<=count;n++)
{
document.getElementById("wButton"+id+n).className=defaultCss;
document.getElementById("wContentBox"+id+n).style.display='none';
}
document.getElementById("wButton"+id+index).className=SelectCss;
document.getElementById("wContentBox"+id+index).style.display='';
if(link!=null && link!="")document.getElementById("TabLink"+id).href=link;

}


function lTabMove(id,index,count,link)
{
var defaultCss="lkjy";
var SelectCss="lkjy_a";
for(var n=1;n<=count;n++)
{
document.getElementById("lButton"+id+n).className=defaultCss;
document.getElementById("lContentBox"+id+n).style.display='none';
}
document.getElementById("lButton"+id+index).className=SelectCss;
document.getElementById("lContentBox"+id+index).style.display='';
if(link!=null && link!="")document.getElementById("TabLink"+id).href=link;

}

function tTabMove(id,index,count,link)
{
var defaultCss="tkjy";
var SelectCss="tkjy_a";
for(var n=1;n<=count;n++)
{
document.getElementById("tButton"+id+n).className=defaultCss;
document.getElementById("tContentBox"+id+n).style.display='none';
}
document.getElementById("tButton"+id+index).className=SelectCss;
document.getElementById("tContentBox"+id+index).style.display='';
if(link!=null && link!="")document.getElementById("TabLink"+id).href=link;

}





function kTabMove(id,index,count,link)
{
var defaultCss="kkjy";
var SelectCss="kkjy_a";
for(var n=1;n<=count;n++)
{
document.getElementById("kButton"+id+n).className=defaultCss;
document.getElementById("kContentBox"+id+n).style.display='none';
}
document.getElementById("kButton"+id+index).className=SelectCss;
document.getElementById("kContentBox"+id+index).style.display='';
if(link!=null && link!="")document.getElementById("TabLink"+id).href=link;

}














function tabMenu2(x,y){
	for(i=0;i<5;i++){
		document.getElementById("note2"+i).className="bottom2 hide"
		document.getElementById("ment2").getElementsByTagName("a")
		
		}
	document.getElementById(x).className="bottom2"
	document.getElementById("ment2").getElementsByTagName("a")
	
	}

function tabMenu3(x,y){
	for(i=0;i<5;i++){
		document.getElementById("note3"+i).className="bottom3 hide"
		document.getElementById("ment3").getElementsByTagName("a")[i].className=""
		
		}
	document.getElementById(x).className="bottom3"
	document.getElementById("ment3").getElementsByTagName("a")[y].className="hover3"
	
	}



function suiji(){
	var shu = Math.floor(Math.random()*16);
	return shu;
}
function bian(){
	$(".ksy_pt32 ul li a").css({"background":"none"});
	$(".ksy_pt32 ul li a span").remove();

	$(".ksy_pt32 ul li a:eq(" + suiji() + ")").css({"padding":"3px 5px","background":"#fff","position":"relative"}).append("<span style='position:absolute;top:-8px;left:-10px;'><img src='../images/hot.gif' /></span>");
	$(".ksy_pt32 ul li a:eq(" + suiji() + ")").css({"padding":"3px 5px","background":"#fff","position":"relative"}).append("<span style='position:absolute;top:-8px;left:-10px;'><img src='../images/hot.gif' /></span>");
	$(".ksy_pt32 ul li a:eq(" + suiji() + ")").css({"padding":"3px 5px","background":"#fff","position":"relative"}).append("<span style='position:absolute;top:-8px;left:-10px;'><img src='../images/hot.gif' /></span>");

}

$(function(){
	bian();
	setInterval("bian()",3000);
})







